/**
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-21 19:25:14
 * @Description  : 配置路径别名
 */

const path = require('path')
const moduleAlias = require('module-alias')

moduleAlias.addAliases({
  '@/config': path.resolve(__dirname, '..', 'config'),
  '@/constants': path.resolve(__dirname, '..', 'constants'),
  '@/controller': path.resolve(__dirname, '..', 'controller'),
  '@/framework': path.resolve(__dirname, '..', 'framework'),
  '@/middlewares': path.resolve(__dirname, '..', 'middlewares'),
  '@/models': path.resolve(__dirname, '..', 'models'),
  '@/router': path.resolve(__dirname, '..', 'router'),
  '@/utils': path.resolve(__dirname, '..', 'utils')
})

moduleAlias()
